package com.pcj.blog.service;/**
 * @param
 * @author pcj
 * @date 2021/12/28 13:42
 * @return
 */

import com.pcj.blog.po.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 *
 * @className TypeService
 * @author pengcj
 * @date 2021/12/28 13:42
 */

public interface TypeService {
    Type saveType(Type type);
    Type getTypebyId(Long id);
    Page<Type>listType(Pageable pageable);
    Type updateType(Long id,Type type);
    void deleteType(Long id);
    Type getTypeByName(String name);
    List<Type> listType();
    //查看博客最多的几个分类
    List<Type> listTypeTop(Integer size);
}
